gtkrange: group gestures the right way around
authorCarlos Garnacho <carlosg@gnome.org>
Thu, 9 Jul 2020 18:44:42 +0000 (20:44 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Thu, 9 Jul 2020 18:49:25 +0000 (20:49 +0200)
commite1a0171094e5d27241e81014c5c7808aa72a40c3
treec2efc1278b20dbe8421b192365e1566ba56f0dac
parent8c95a84ea4ae5394451880c1afb57b5798b75bcc
gtkrange: group gestures the right way around

The gtk_gesture_group() call is not a commutative operation, it
takes two gestures, maybe detaches the first one from its current
group, and adds it to the same group than the second gesture.

With the flipped argument order here, GtkRange was actually detaching
the same gesture in order to group it with a second one two times, so
the desired effect to group all 3 gestures was not achieved.

Fixes autoscroll as the drag gesture is now actually grouped with the
click one, so drag offsets can be accessed from the autoscroll
timeout.
gtk/gtkrange.c